﻿ //Copyright (C) <2013>  <jonathan cleeve norton> All Rights Reserved 
//Contact jon.norton@fin-plus.co.uk website <http://www.fin-plus.co.uk/>
using System;
using System.Reflection;
using FinPlusAssembler;
using FinPlusInterfaces;

namespace FinPlusCompView
{
    public sealed class FinPlusConnectPods : FinPlusControl, IFinPlusComp, IFinPlusConnect
    {
        [State(Test = true)]
        public override bool IsValid { get; set; }
        [State(Test = true)]
        public override string TestString { get { return Adapter.ToString(); } }
        public bool CanWrite { get { return true; } }
        public override IPods Adapter { get { return _adapter; } }

        private IPods _adapter;

        //construct
        public FinPlusConnectPods(IPods pod)
        {
            _adapter = pod;
            IsValid = true;
        }

        //public
        public IDPods DPods() { return IOC.New<IDPods>(_adapter); }

        public IPods Pods() { return _adapter;}
    }
}


























































































//Copyright2013<jnrton>AllRightsReserved 
//Contact j.nrton@finpus